package com.logistic.common.taglib;

import java.io.IOException;

import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

import com.logistic.common.Constants;

public class KouAnStatus extends TagSupport{ 
	/**
	 * 
	 */
	private static final long serialVersionUID = 6290388793965694092L;
	private String kouan;



	public int doStartTag() { 
	  JspWriter out = pageContext.getOut();
	  String status = "";
	  if(kouan.equalsIgnoreCase(Constants.KA_CQ)){
		  status = "成都";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_TJ)){
		  status = "天津";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_BJ)){
		  status = "成都";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_GZ)){
		  status = "广州";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_GZBS)){
		  status = "广州(包税)";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_SHBS)){
		  status = "上海普货包税线";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_SHBSDZ)){
		  status = "上海电子化妆品线";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_SHJJ)){
		  status = "上海经济线";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_SHQT)){
		  status = "上海其他类线";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_SHPC)){
		  status = "上海特殊类电子产品";
	  }
	  if(kouan.equalsIgnoreCase(Constants.KA_FZ)){
		  status = "福州";
	  }
		  
	  try {
		out.println(status);
	} catch (IOException e) {
		e.printStackTrace();
	} 
	  return EVAL_PAGE;// 标签执行完后，继续执行后面的 
	}

	public int doEndTag() { 
		  return EVAL_PAGE; 
	} 
	
	public String getKouan() {
		return kouan;
	}

	public void setKouan(String kouan) {
		this.kouan = kouan;
	}

	
}
